<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Code by TinhNQ
 * 2014
 **/
class Pref_Module extends Module {
    public $name = 'pref';
    
    public function __construct(){
        $this->active_module = $this->name;
        parent::__construct();
    }
    
    public function do_admin_preload(){
        $this->CI->admin_navigation->child_link('pref',1,'Tỉnh thành',admin_url('*/pref/manager_pref'));
        $this->CI->admin_navigation->child_link('pref',2,'Quận huyện',admin_url('*/city/manager_city'));
        $this->CI->admin_navigation->child_link('pref',3,'Khu vực',admin_url('*/region/manager_region'));
    }
    
    function do_front_preload(){
        $this->CI->smarty->addPluginsDir(APPPATH.'modules/restaurant/plugins/');
    }
}
